//
//  HJTableViewCell.m
//  KaiChat
//
//  Created by lx on 2023/10/17.
//

#import "HJTableViewCell.h"

@implementation HJTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self settingSubView];
//        self.contentView 不能有颜色
        self.selectedBackgroundView = [[UIView alloc] initWithFrame:self.frame];
        self.selectedBackgroundView.backgroundColor = [UIColor tj_selectCellBackgroundColor];
//        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

- (void)settingSubView {
    
}

- (void)setSelectCellBackgroundColor:(UIColor *)selectCellBackgroundColor {
    _selectCellBackgroundColor = selectCellBackgroundColor;
    
    self.selectedBackgroundView.backgroundColor = selectCellBackgroundColor;
}

@end
